package lg.minecraft.plugin.entityclear.component;

/**
 * @author langle__
 * @version 1.0
 */
public enum ComponentType {
    WORLD_FILTER("WorldFilter"),
    ENTITY_FILTER("EntityFilter"),
    ENTITY_REMOVER("EntityRemover");

    public final String name;

    ComponentType(String name) {
        this.name = name;
    }

    public static ComponentType getType(String name) {
        for (ComponentType type : values()) {
            if (type.name().equalsIgnoreCase(name)) {
                return type;
            }
        }
        return null;
    }

}
